<%= form_for([@project, @bug]) do |f| %>
  <% if @bug.errors.any? %>
    <div id="error_explanation">
      <h2><%= @bug.errors.count.to_s + " " + t("helpers.error") %>:</h2>

      <ul>
      <% @bug.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :priority %>
    <%= f.select :priority, t("activerecord.attributes.values.bug.priorities").invert %><br />
  </div>

  <div class="field">
    <%= f.label :status %>
    <%= f.select(:status, t("activerecord.attributes.values.bug.statuses").invert) %><br />
  </div>

  <div class="field">
    <%= f.label :processor %>
    <%= collection_select(:bug, :processor_id, Project.find(params[:project_id]).users, :id, :alias) %>
  </div>
  <div class="field">
    <%= f.label :title %>
    <%= f.text_field :title %>
  </div>
  <div class="field">
    <%= f.label :description %><br />
    <%= f.text_area :description %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
